package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.base.mybatis.sql.Shard;
import com.netease.nie.mapper.CountryMapper;
import com.netease.nie.model.Country;

@Repository
public class CountryDao {

	@Resource
	private CountryMapper countryMapper;
	
	public List<Country> listAllCountry() throws Exception {
		//return countryMapper.listAllCountry(1, 10, new Shard("User.userId", 10100000005L));
		return countryMapper.listAllCountry();
	}
	
	public Country queryCountryById() {
		return countryMapper.queryCountryById();
	}
	
	public int addCountry(Country country) {
		return countryMapper.addCountry(country);
	}
}
